package by.epam.communalservices.entity;

public class JkhWorker {
    private Long id;

    private String name, surname, patronymic;

    private String specialty;

    private Integer rate;

    public JkhWorker() {
    }

    public JkhWorker(Long id, String name, String surname, String patronymic,
            String specialty, Integer rate) {
        this.id = id;
        this.name = name;
        this.surname = surname;
        this.patronymic = patronymic;
        this.specialty = specialty;
        this.rate = rate;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public String getPatronymic() {
        return patronymic;
    }

    public void setPatronymic(String patronymic) {
        this.patronymic = patronymic;
    }
    public String getSpecialty() {
        return specialty;
    }

    public void setSpecialty(String specialty) {
        this.specialty = specialty;
    }

    public Integer getRate() {
        return rate;
    }

    public void setRate(Integer rate) {
        this.rate = rate;
    }

    public String toString() {
        return new StringBuilder().append("[id: ").append(getId())
                .append(", name: ").append(getName()).append(", surname: ")
                .append(getSurname()).append(", patronymic: ")
                .append(getPatronymic()).append(", specialty: ")
                .append(getSpecialty()).append(", rate: ").append(getRate())
                .append(']').toString();
    }
}